<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <input type="text" v-model="search.key"><br>
    <input type="text" v-model="search.key2">
</div>
<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    var vm=new Vue({
        el:"#app",
        data:{
            search:{
                key:'',
                key2:''
            }

        },
        computed:{

        },
        watch:{
            search: {
                deep:true,
                handler(val) {
                    console.log(val.key);
                    console.log(val.key2);
                }
            }
        }
    })
</script>
</body>
</html>